package com.common.validator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author zdh
 */
@Target({ ElementType.FIELD,ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(
        validatedBy = {CustomNotEmptyConstraintValidator.class}
)
public @interface CustomNotEmpty {
    String message();
    Class<?>[] groups() default { };
    Class<? extends Payload>[] payload() default { };
}
